﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SDF
{
    public class UIElementContainer: SmartInline
    {
        #region Constructor

        public UIElementContainer()
        {
        }

        #endregion

        #region Properties

        public UIElement Child
        {
            get { return _Child; }
            set 
            {
                if (_Child != value)
                {
                    if (_Child != null)
                        SmartLogicalTreeHelper.RemoveChild(this, _Child);
                    _Child = value;
                    SmartLogicalTreeHelper.AddChild(this, value);
                }
            }
        }
        private UIElement _Child;

        #endregion
    }
}
